package com.ill.legou.item.dao;


import com.ill.legou.item.po.Brand;
import com.ill.legou.item.po.Category;
import com.lxs.legou.core.dao.ICrudDao;
import org.apache.ibatis.annotations.Param;

import java.util.List;


/*
* @Title: 商品Dao
* */
public interface BrandDao extends ICrudDao<Brand> {

    /*
    * 删除商品与分类关联
    * */
    public int deleteCategoryByBrand(Long id);


    /*
    * 建立商品与分类的关联
    * */
    public int insertCategoryAndBrand(@Param("category") Long categoryId,
                                      @Param("brandId") Long BrandId);

    /*
    * 根据商品查分类，需要知道商品的id，然后通过他来查询到
    * */
    public List<Category> selectCategoryByBrand(Long id);

}
